package com.sdy.dcsb.biz.service.impl;

import com.sdy.dcsb.biz.mapper.EsbInboundScriptMapper;
import com.sdy.dcsb.biz.model.EsbInboundScript;
import com.sdy.dcsb.biz.model.EsbScript;
import com.sdy.dcsb.biz.service.EsbInboundScriptService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Snaky
 * @date 2020/4/29 9:25
 */
@Slf4j
@Service
public class EsbInboundScriptServiceImpl extends BaseServiceImpl<EsbInboundScript> implements EsbInboundScriptService {
    @Autowired
    private EsbInboundScriptMapper mapper;

    /**
     * 查询服务关联的脚本信息
     *
     * @param serviceId 服务id
     * @return 配置信息
     */
    @Override
    public EsbScript getScriptConf(Integer serviceId) {
        return mapper.getScriptConf(serviceId);
    }
}
